﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FubiManger.Pad
{
    ////ToolboxItem用于控制是否添加自定义控件到工具箱，true添加，false不添加
    //[System.ComponentModel.ToolboxItem(true)]
    partial class diskmenucontrol : Smobiler.Core.Controls.MobileUserControl
    {
        public diskmenucontrol() : base()
        {
            //This call is required by the SmobilerUserControl.
            InitializeComponent();
        }
        /// <summary>
        /// 位置名称
        /// </summary>
        public string diskname { get; set; }
        /// <summary>
        /// 位置ID
        /// </summary>
        public string diskid { get; set; }

        private void diskmenucontrol_Load(object sender, EventArgs e)
        {
            btndisk.Text = diskname;//位置名称
        }

        private void btndisk_Press(object sender, EventArgs e)
        {
            ((PorderfoodForm)this.Form).RemoveAllImgStyle1(btndisk.Text);
            btndisk.BackColor = System.Drawing.Color.FromArgb(207, 29, 32);
            btndisk.ForeColor = System.Drawing.Color.White;
        }
    }
}